﻿#region Usings
using System;
using BK.WebSite.AppCode;
using Lib.ApplicationBlocks.Modules.Web.General;
using Lib.Utils.WebUtils.UrlTools;
#endregion

namespace BK.WebSite.Accounting
{
	public partial class CategoryList : ModulBaseePage
	{
		#region Instance Methods
		protected override void DoRegisterCustomInfo()
		{
			UrlBuilder urlBuilder = new UrlBuilder("~/Accounting/CategoryEdit.aspx");
			if (categoryListControl.ParentId.AllKeysHasValue)
				urlBuilder.Add(new UrlParameter(WebConstants.UrlParams.PARENT_ID, categoryListControl.ParentId.Value));

			RegisterCustomInfo(categoryListControl.Key, new CustomInfoForControl
			                                            	{
			                                            		EditUrl = urlBuilder.ToString()
			                                            	});
		}

		protected void Page_Load(object sender, EventArgs e)
		{
		}
		#endregion
	}
}